<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ProductsCategories extends Model
{
    use HasFactory;

    protected $table = 'product_categories';
    protected $fillable = ['name', 'remark', 'name_en', 'remark_en'];

    public function products()
    {
        return $this->hasMany(Products::class, "category_id", "id");
    }
}
